<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../Public/css/style.css" />
<script type="text/javascript" src="__PUBLIC__/js/jquery-1.6.1.min.js"></script>
<title><?php echo ($pagetitle); ?>-后台管理页面</title>
</head>
<body class="main-body">

<div class="path">
  <p>当前位置：开发人员工具<span>&gt;</span>系统节点列表</p>
</div>
<div class="main-cont">
  <h3 class="title">系统节点信息<a class="a-btn" href="<?php echo U('Sysnode/addnode');?>"><span>添加系统节点</span></a></h3>
  <table class="table" cellpadding="0" cellspacing="0" width="100%" border="0">
    <colgroup>
    <col class="w-150" />
    <col class="w-150"/>
    <col class="w-110"/>
    <col class="w-140" />
    <col class="w-140" />
    <col class="w-100"/>
    <col/>
    </colgroup>
    <thead class="tb-tit-bg">
      <tr>
        <th><div class="th-gap">节点标识</div></th>
        <th><div class="th-gap">节点名称</div></th>
        <th><div class="th-gap">隶属菜单组</div></th>
        <th><div class="th-gap">创建时间</div></th>
        <th><div class="th-gap">更新时间</div></th>
        <th><div class="th-gap">节点状态</div></th>
        <th><div class="th-gap">操作</div></th>
      </tr>
    </thead>
    <tfoot class="tb-tit-bg">
      <tr>
        <td colspan="7"><div class="pre-next"> </div>
          全选</td>
      </tr>
    </tfoot>
    <tbody id="recordList">
      <?php if(!empty($list)): ?><?php if(is_array($list["mod"])): $i = 0; $__LIST__ = $list["mod"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr>
        <td><?php echo ($vo["ename"]); ?></td>
        <td><?php echo ($vo["name"]); ?></td>
        <td><?php echo ($vo["navg"]); ?></td>
        <td><?php echo (toDate($vo["create_time"])); ?></td>
        <td><?php echo (toDate($vo["update_time"])); ?></td>
        <td class="t-algin-c">
        	<?php if(($vo["status"])  ==  "0"): ?><span class="fcolor-red">禁用</span><?php endif; ?>
            <?php if(($vo["status"])  ==  "1"): ?><span class="fcolor-green">正常</span><?php endif; ?>
            <?php if(($vo["status"])  ==  "2"): ?><span class="fcolor-F60">隐藏</span><?php endif; ?>
        </td>
        <td>
        	<?php if(($vo["type"])  !=  "0"): ?><a class="icon-add">加子节点</a> <a class="icon-edit">编辑</a> <a class="icon-del">删除</a>
            <?php else: ?>
                <span class="icon-shield">系统内置节点</span><?php endif; ?>
        </td>
      </tr>
          <?php if(is_array($list['act'][$vo['id']])): $i = 0; $__LIST__ = $list['act'][$vo['id']];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr>
              <td>&nbsp;├ <?php echo ($vo["ename"]); ?></td>
              <td>&nbsp;├ <?php echo ($vo["name"]); ?></td>
              <td><?php echo ($vo["navg"]); ?></td>
              <td><?php echo (toDate($vo["create_time"])); ?></td>
              <td><?php echo (toDate($vo["update_time"])); ?></td>
              <td class="t-algin-c">
                  <?php if(($vo["status"])  ==  "0"): ?><span class="fcolor-red">禁用</span><?php endif; ?>
                  <?php if(($vo["status"])  ==  "1"): ?><span class="fcolor-green">正常</span><?php endif; ?>
                  <?php if(($vo["status"])  ==  "2"): ?><span class="fcolor-F60">隐藏</span><?php endif; ?>
              </td>
              <td><a class="icon-edit">编辑</a> <a class="icon-del">删除</a></td>
            </tr><?php endforeach; endif; else: echo "" ;endif; ?><?php endforeach; endif; else: echo "" ;endif; ?>
      <?php else: ?>
	  <tr>
        <td colspan="7"><p class="no-data">尚没有任何被屏蔽项</p></td>
      </tr><?php endif; ?>      
    </tbody>
  </table>
</div>
</body>
</html>